package com.liz.springCloudAlibaba.consumer;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class ParentController {

    public static String blockHandler111(BlockException blockException) {
        String message = "{\"statusCode\":"+429+",\"message\":\""+"已经达到限流阀值啦，稍后再试....\"}";
        return message;
    }

    public static String fallback111() {
        String message = "{\"statusCode\":"+429+",\"message\":\""+"下游服务不可用，已熔断...稍后再试...\"}";
        return message;
    }


}
